<template>
  <div>
    <div class="top_wrap">
      <div>
        <el-input v-model="searchText"></el-input>
        <el-button type="primary">查询</el-button>
      </div>
      <el-button type="success">添加</el-button>
    </div>
    <el-dialog title="添加视频" v-model="diaFlag">
      <el-form>
        <el-form-item label="视频地址">
          <input type="file" hidden id="myvideo" ref="myvideo" />
          <el-input disabled></el-input
          ><el-button type="success">选择视频</el-button>
        </el-form-item>
        <el-form-item label="视频名称">
          <el-input></el-input>
        </el-form-item>
        <el-form-item label="视频时长">
          <el-input></el-input>
        </el-form-item>
      </el-form>
      <template #footer>
        <span>
          <el-button type="primary">确定</el-button>
          <el-button type="danger">取消</el-button>
        </span>
      </template>
    </el-dialog>
  </div>
</template>

<script lang="ts" setup>
import { ref, reactive } from 'vue'
let searchText = ref('') //搜索字段
let diaFlag = ref(false) //弹出层的数据
</script>
<style lang="less">
.top_wrap {
  width: 80%;
  margin: 30px auto;
  display: flex;
  justify-content: space-between;
  .el-input {
    width: 300px;
  }
}
</style>
